<template>
	<!-- 用户订单详情 -->
	<view class="box" :style="{'padding-top':systemHeight+29+'px'}">
		<view class="topp">
			<image class="back" src="/static/img/back_map.png" @click="back"></image>
			<view class="right"></view>
		</view>
		<view class="bottom">
			<image class="bottom_bg" src="/static/img/bg_5.png"></image>
			<view class="bottom_top_title">The itinerary has ended smoothly</view>
			<view class="bottom_top_welcome">Welcome to use again</view>
			<view class="driver">
				<image class="avatar" src="/static/img/women.png"></image>
				<view class="driver__mid">
					<view class="driver_name">Driver name</view>
					<view class="driver_car">
						L-2323-RF
						<text>Toyota HR-V . White</text>
					</view>
				</view>
				<image class="driver_phone" src="/static/img/phone.png"></image>
			</view>
			<view class="content_lie">
				<view class="content_lie_left">3.9 km, 10-minute trip</view>
				<view class="content_lie_right">
					<view class="money">MK<text>8000</text>
						<image class="selet" src="/static/img/on.png"></image>
					</view>
					<view class="money_bottom">Discounted by<text>600</text>marks</view>
				</view>
			</view>
			<view class="content_box">
				<view class="content_box_row" v-for="(item,index) in boxContent" :key="index">
					<view class="row_left" :class="{orther:index==0||index==4||index==5}">{{item}}</view>
					<view class="row_left" :class="{orther:index==0||index==4||index==5}">{{index}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemHeight: null,
				boxContent: ['Order Amount', 'Starting fee', 'Mileage fee', 'Market fees', 'Discounts', 'Payment method']
			}
		},
		created() {
			this.systemHeight = uni.getSystemInfoSync().statusBarHeight
		},
		methods: {
			back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style>
	.boxx {
		width: 100%;
		height: 100vh;
	}

	.topp {
		width: 90%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin: 0rpx auto;
	}

	.back {
		width: 60rpx;
		height: 60rpx;
	}

	.right {
		width: 60rpx;
	}

	.bottom {
		padding: 30rpx;
		box-sizing: border-box;
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 890rpx;
		border-radius: 60rpx 60rpx 10rpx 10rpx;
	}

	.bottom_bg {
		z-index: -1;
		box-sizing: border-box;
		position: absolute;
		width: 100%;
		height: 331rpx;
		top: 0;
		left: 0;
	}

	.bottom_top_title {
		box-sizing: border-box;
		font-family: Mont;
		font-weight: bold;
		font-size: 26rpx;
		margin-bottom: 24rpx;
	}

	.bottom_top_welcome {
		box-sizing: border-box;
		font-family: Mont;
		font-weight: 500;
		font-size: 24rpx;
		color: #787878;
		margin-bottom: 33rpx;
	}

	.driver {
		display: flex;
		box-sizing: border-box;
		align-items: center;
		position: relative;
		padding: 38rpx 27rpx;
		background: #F4F4F4;
		border-radius: 30rpx;
		margin-bottom: 23rpx;
	}

	.avatar {
		width: 96rpx;
		height: 96rpx;
		margin-right: 30rpx;
	}

	.driver__mid {}

	.driver_name {
		font-family: Mont;
		font-weight: bold;
		font-size: 30rpx;
		margin-bottom: 35rpx;
	}

	.driver_car {
		font-family: Mont;
		font-weight: 500;
		font-size: 24rpx;
		margin-right: 16rpx;
	}

	.driver_car text {
		margin-left: 16rpx;
		font-family: Mont;
		font-weight: 500;
		font-size: 24rpx;
		color: #787878;
	}

	.driver_phone {
		position: absolute;
		top: 50rpx;
		right: 40rpx;
		width: 66rpx;
		height: 66rpx;
	}

	.content_lie {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 22rpx;
	}

	.content_lie_left {
		font-family: Mont;
		font-weight: 600;
		font-size: 32rpx;
	}

	.content_lie_right {
		display: flex;
		flex-direction: column;
		align-items: end;
	}

	.money {
		display: flex;
		align-items: center;
		margin-bottom: 10rpx;
		font-family: Mont;
		font-weight: bold;
		font-size: 24rpx;
	}

	.money text {
		font-size: 36rpx;
	}

	.selet {
		width: 20rpx;
		height: 12rpx;
		margin-left: 8rpx;
	}

	.money_bottom {
		font-family: Mont;
		font-weight: 500;
		font-size: 20rpx;
		color: #787878;
	}

	.money_bottom text {
		color: #34BA78;
	}

	.content_box {
		padding: 37rpx 26rpx;
		height: 382rpx;
		background: #F4F4F4;
		border-radius: 30rpx;
	}

	.content_box_row {
		margin-bottom:30rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.row_left {
		font-family: Mont;
		font-weight: 500;
		font-size: 24rpx;
		color: #515151;
	}

	.orther {
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
		color: #000000;
	}

	.row_right {
		font-family: Mont;
		font-weight: 500;
		font-size: 18rpx;
		color: #515151;
	}
</style>